package com.ruoyi.employee.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.customer.domain.CrmCustomer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户员工对象 crm_employee
 *
 * @author hct
 * @date 2022-02-11
 */
@Data
public class CrmEmployee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

 
    /** 头像 */
    @Excel(name = "头像")
    private String head;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 0是正常1是禁用 */
    @Excel(name = "0是正常1是禁用")
    private Integer status;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    /** 归属客户id */
    @Excel(name = "归属客户id")
    private Long customerId;
    private String customerName;
    private CrmCustomer crmCustomer;

    /** 密码 */
    private String password;

    /** 电话 */
    @Excel(name = "电话")
    private String mobile;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
   
    public void setHead(String head)
    {
        this.head = head;
    }

    public String getHead()
    {
        return head;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
   
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("head", getHead())
                .append("name", getName())
                .append("sex", getSex())
                .append("status", getStatus())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("customerId", getCustomerId())
                .append("updateBy", getUpdateBy())
                .append("password", getPassword())
                .append("mobile", getMobile())
                .toString();
    }
}
